<p>
	<a href="?controller=Photo&action=prev&imgId=<?php echo $data->previousId; ?>&size=<?php echo $data->size; ?>&categorie=<?php echo urlencode($data->current_categorie); ?>" class="buttons">Prev</a>&nbsp;
	<a href="?controller=Photo&action=next&imgId=<?php echo $data->nextId; ?>&size=<?php echo $data->size; ?>&categorie=<?php echo urlencode($data->current_categorie); ?>" class="buttons">Next</a>
	<form action="" method="GET">
		<input type="hidden" name="controller" value="Photo">
		<input type="hidden" name="action" value="index">
		<select name="categorie" id="categorie">
			<option value="">Toutes les catégories</option>
<?php	foreach ($data->categories as $c) : ?>
<?php 		$selected = "";
			if( isset($_GET["categorie"]) && ($_GET["categorie"] == $c->categorie) ) {
				$selected = "selected";
			}
?>
			<option <?php echo $selected; ?> value="<?php echo $c->categorie; ?>"><?php echo $c->categorie; ?></option>
<?php 	endforeach; ?>
		</select>
		<input type="submit" value="Selectionner">
	</form>
</p>
<div class="image">
	<a id="lienImage" href="?controller=Photo&action=zoom&imgId=<?php echo $data->image->getId(); ?>&size=<?php echo $data->size; ?>&zoom=1.25">
		<img src="<?php echo $data->image->getURL(); ?>" width="<?php echo $data->size; ?>" />
	</a>
	<div id="infosImage">
		<strong>Catégorie</strong> : <?php echo $data->image->getCategory(); ?><br />
		<strong>Commentaire</strong> : <?php echo $data->image->getComment(); ?><br />
	</div>
</div>
<div id="likes">
	<div id="ilike">
		<?php echo $data->image->getLike(); ?><a href="?controller=Photo&action=note&imgId=<?php echo $data->image->getId(); ?>&note=like"><span id="pouce-vert" class="pouce">&nbsp;</span></a>
	</div>
	<div id="idontlike">
		<?php echo $data->image->getUnlike(); ?><a href="?controller=Photo&action=note&imgId=<?php echo $data->image->getId(); ?>&note=unlike"><span id="pouce-rouge" class="pouce">&nbsp;</span></a>
	</div>
	<div class="fin"></div>
</div>

<a id="editionImage" href="?controller=Photo&action=edit&imgId=<?php echo $data->image->getId(); ?>&categorie=<?php echo $data->current_categorie; ?>">Editer</a>
